package com.jsbs.iam.ident.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhouxiangyang
 * @className LoginUtil
 * @date 2023/1/9 13:33
 * @description:
 */
public class LoginUtil {

    /**
     * 判断登录端
     * @param request
     * @return
     */
    public static String getRequestHeader(String request){
        String loginInfo = "";
        switch (request) {
            case ("Windows"):
                loginInfo = "Windows pc端登陆";
                break;
            case ("Macintosh"):
                loginInfo = "Mac pc端登陆";
                break;
            case ("Android"):
                loginInfo = "Android移动客户端";
                break;
            case ("iPhone"):
                loginInfo = "iPhone移动客户端";
                break;
            case ("iPad"):
                loginInfo = "iPad客户端";
                break;
        }
        return loginInfo;
    }
}
